package designpattern.simplefactory.commodity;

public class Client {
    public static void main(String[] args) {
        ICommodity commodityA = CommodityFactoryReflection.getCommodityInstance(CommodityA.class);
        commodityA.createCommodity();
        ICommodity commodityB = CommodityFactoryReflection.getCommodityInstance(CommodityB.class);
        commodityB.createCommodity();
    }
}
